<template>
  <div class="container">
    <div style="border-bottom:1px solid #ccc;padding-bottom:50px">
      <div class="card_title">
        <img src="~@/assets/report/first/jibenxinxi.png" />
        <span>基本信息</span>
      </div>
      <div class="card_content">
        <a-row>
          <a-col :span="8">
            <div class="form_item">
              <span class="card_label">患者姓名:</span>
              <span class="card_value">{{ report.reportContent.basicInfo.patientsName }}</span>
            </div>
          </a-col>
          <a-col :span="8">
            <div class="form_item">
              <span class="card_label">性别:</span>
              <span class="card_value">{{ report.reportContent.basicInfo.patientsSex }}</span>
            </div></a-col
          >
          <a-col :span="8">
            <div class="form_item">
              <span class="card_label">年龄:</span>
              <span class="card_value">{{ report.reportContent.basicInfo.patientAge }}</span>
            </div></a-col
          >
          <a-col :span="8">
            <div class="form_item">
              <span class="card_label">手机号码:</span>
              <span class="card_value">{{ report.reportContent.basicInfo.patientsMobile }}</span>
            </div></a-col
          >
          <a-col :span="8">
            <div class="form_item">
              <span class="card_label">身高:</span>
              <span class="card_value">{{ report.reportContent.basicInfo.height }}</span>
            </div></a-col
          >
          <a-col :span="8">
            <div class="form_item">
              <span class="card_label">体重:</span>
              <span class="card_value">{{ report.reportContent.basicInfo.weight }}</span>
            </div></a-col
          >
          <a-col :span="8">
            <div class="form_item">
              <span class="card_label">BMI:</span>
              <span class="card_value">{{ report.reportContent.basicInfo.bmi }}</span>
            </div></a-col
          >
          <a-col :span="16">
            <a-row class="form_item">
              <a-col :span="4" class="card_label" style="margin-right:0">简要病史:</a-col>
              <a-col :span="20" class="card_value" style="line-height:18px;margin-top: 15px;">{{
                report.reportContent.basicInfo.patientDesc
              }}</a-col>
            </a-row>
          </a-col>
        </a-row>
        <a-row v-if="type == 1">
          <a-col :span="5">本周问诊主要问题:</a-col>
          <a-col :span="19">
            <a-input
              v-if="status == 0"
              v-model="report.weekInputUpdate.mainQuestion"
              :max-length="50"
              placeholder="限制50字"
            ></a-input>
            <span v-if="status == 1">{{ report.weekInputUpdate.mainQuestion }}</span>
          </a-col>
        </a-row>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'BasicInfo',
  props: ['report', 'status', 'type'],
  data() {
    return {}
  },
  methods: {}
}
</script>

<style lang="less" scoped>
.container {
  padding: 50px 24px 0 24px;
}
.card_title {
  display: flex;
  align-items: center;
  img {
    width: 25px;
    height: 25px;
    margin-right: 10px;
  }
  span {
    font-size: 20px;
    font-weight: bold;
    color: #000;
  }
}
.card_img {
  display: flex;
  margin-top: 20px;
  img {
    width: 100px;
    height: 100px;
    margin-right: 10px;
  }
}
.card_content {
  margin-top: 15px;
}
.form_item {
  line-height: 50px;
}
.card_label {
  margin-right: 10px;
  color: #000;
}
.card_value {
  color: rgba(0, 0, 0, 0.55);
}
</style>

